package com.bsoft.gol.hcs.enumcase;

/**
 * @Author: lanyu
 * @Description: 随访因素类别枚举类
 * @Date: create in 2022/5/27 14:24
 */
public enum FollowFactorTypeEnum {
    OUTPATIENT_DIAGNOSIS((byte) 1, "门诊诊断"),
    IN_HOSPITAL_DIAGNOSIS((byte) 2, "入院诊断"),
    OUT_HOSPITAL_DIAGNOSIS((byte) 3, "出院诊断"),
    RECEIVE_DOCTOR((byte) 4, "接诊医生"),
    DUTY_DOCTOR((byte) 5, "责任医生"),
    CRUCIAL_INDEX((byte) 6, "关联指标"),
    SURGICAL_NAME((byte) 7, "手术名称"),
    MEDICAL_ADVICE_NAME((byte) 8, "医嘱名称"),
    SPECIALIST_STAGE((byte) 9, "专病分期"),
    SPECIALIST_ATTRIBUTE((byte) 10, "专病扩展属性"),
    OUTPATIENT_STATUS((byte) 11, "门诊状态"),
    INPATIENT_STATUS((byte) 12, "住院状态"),
    ROUTE_BRANCH((byte) 13, "路径分支");

    private final Byte type;
    private final String name;

    FollowFactorTypeEnum(Byte type, String name) {
        this.type = type;
        this.name = name;
    }

    public static FollowFactorTypeEnum getEnumByType(Byte type) {
        for (FollowFactorTypeEnum temp : FollowFactorTypeEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp;
            }
        }
        return null;
    }

    public Byte getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}
